package com.example.lte.second.service.impl;

import com.example.lte.second.service.IPrizeSender;
import com.example.lte.second.service.PrizeTypeEnum;
import com.example.lte.second.service.SendPrizeReq;
import org.springframework.stereotype.Service;

/**
 * @author lzh
 * @date 2020/11/19 - 13:23
 */
@Service
public class VirtualSenderImpl  implements IPrizeSender {
    @Override
    public boolean support(SendPrizeReq sendPrizeReq) {
        return sendPrizeReq.getPrizeType()== PrizeTypeEnum.VIRTUAL_CURRENCY;

    }

    @Override
    public void sendPrize(SendPrizeReq sendPrizeReq) {
        System.out.println(sendPrizeReq.getSendTime());

        System.out.println("发虚拟货币");
    }
}
